package cn.newgrand.netcall.personal.contact.entity;

/**
 * @author SidneyRen E-mail:SidneyRen@hotmail.com
 * @version create time：2010-10-11 下午06:24:13 类说明
 */
public class FrequentContact {
	private String jid;
	private String nickName;

	public FrequentContact() {
	}

	public FrequentContact(String jid, String nickName) {
		super();
		this.jid = jid;
		this.nickName = nickName;
	}

	public String getJid() {
		return jid;
	}

	public void setJid(String jid) {
		this.jid = jid;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	// public String toString(){
	// return "<jid>"+jid+"</jid><nickName>"+nickName+"</nickName>";
	// }
	@Override
	public boolean equals(Object obj) {

		if (this == obj) {
			return false;
		}
		if (null != obj && obj instanceof FrequentContact) {
			return jid.equals(((FrequentContact) obj).getJid());
		} else

			return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return jid.hashCode();
	}
}
